import request from '@/utils/request'

// api地址
const api = {
  authorization: 'User/get_auth_data',
	aliLogins: 'User/aliLogins',
	wxLogins: 'user/getWechatInfoByAPP'
}

// 支付宝授权
export function authorization() {
  return request.post(api.authorization)
}

// 支付宝登录
export function aliLogins(data) {
  return request.post(api.aliLogins, data)
}

// 微信支付登录
export function wxLogins(data) {
  return request.post(api.wxLogins, data)
}
